package org.code;

/**
 * 
 * Given an integer array nums, find the sum of the elements between indices i
 * and j (i ≤ j), inclusive. The update(i, val) function modifies nums by
 * updating the element at index i to val.
 * 
 * Example:
 * 
 * Given nums = [1, 3, 5]
 * 
 * sumRange(0, 2) -> 9 update(1, 2) sumRange(0, 2) -> 8
 * 
 * @author zhujunbing
 * @date 2018年4月24日
 */
public class Lt307 {

	class NumArray {
		public NumArray(int[] nums) {

		}

		public void update(int i, int val) {

		}

		public int sumRange(int i, int j) {
			return j;
		}
	}
	
	public static void main(String[] args) {
		System.out.println(1<<1);
	}
}
